package com.smart.modules.genealogy.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.system.common.base.BaseEntity;

/**
 * 人员关系对象 person_relationship
 */

public class PersonRelationship extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人员编号 */
    private Long personId;

    /** 被关联人员编号 */

    private Long personId2;

    /** 关系类型编号 */

    private Long relationshipTypeId;

    /** 逻辑删除标识(1:已删除;0:未删除) */
    @TableLogic
    private Long deleted;

    public void setPersonId(Long personId)
    {
        this.personId = personId;
    }

    public Long getPersonId()
    {
        return personId;
    }
    public void setPersonId2(Long personId2)
    {
        this.personId2 = personId2;
    }

    public Long getPersonId2()
    {
        return personId2;
    }
    public void setRelationshipTypeId(Long relationshipTypeId)
    {
        this.relationshipTypeId = relationshipTypeId;
    }

    public Long getRelationshipTypeId()
    {
        return relationshipTypeId;
    }
    public void setDeleted(Long deleted)
    {
        this.deleted = deleted;
    }

    public Long getDeleted()
    {
        return deleted;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("personId", getPersonId())
                .append("personId2", getPersonId2())
                .append("relationshipTypeId", getRelationshipTypeId())
                .append("deleted", getDeleted())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
